from fdfs_client.client import Fdfs_client

trackers = {"host_tuple": ("xujiang5.xicp.io",), "port": 5000, "timeout": 60}
client = Fdfs_client(trackers)
import struct

send_buffer = struct.pack("!Q Q c 16s 44s 28s", 44, 28, b'O', b'group1',b'M00/00/00/wKgfvFqo5s2Aa8UgAAA4jrIK_tU5992.py',
                          b'ext_namepyfile_size14478B')

def HexToByte( hexStr ):
    """
    Convert a string hex byte values into a byte string. The Hex Byte values may
    or may not be space separated.
    """

    return bytes.fromhex(hexStr)

print(HexToByte("B9 01EF"))

def ByteToHex( bins ):
    """
    Convert a byte string to it's hex string representation e.g. for output.
    """

    return ''.join( [ "%02X" % x for x in bins ] ).strip()
from datetime import datetime
import time
print(time.time())
print(datetime.fromtimestamp(100000).isoformat())
